<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet"
	href="${initParam.url }/bootstrap-3.0.3/css/bootstrap.min.css">
<script type="text/javascript"
	src="${initParam.url }/statics/js/jquery-1.12.4.js"></script>
<script type="text/javascript"
	src="${initParam.url }/statics/js/login.js"></script>
<script type="text/javascript"
	src="${initParam.url }/statics/js/category.js"></script>
	<script type="text/javascript"
	src="${initParam.url }/bootstrap-3.0.3/js/bootstrap.js"></script>	
	<script type="text/javascript"
	src="${initParam.url }/statics/js/control.js"></script>	
	
	 <style type="text/css">
  #nav{
   width: 300px;
   height: 300px;
   float:left;
   
  }
  #main{
   float:left;
  }
  #indexmian{
  width: 1100px;
  height: 800px;
  }
  </style>
	<script type="text/javascript">
		$(function(){
			$("#returnPage").click(function(){
				window.history.back();
			});
		});
	</script>
	
</head>
<body>
	<div id="page">
		<!-- 页眉 -->
		<%--<tiles:insertAttribute name="header"></tiles:insertAttribute> --%>
		<div id="content">
			<div id="nav">
				<c:if test="${user != null }">
					<c:import url="${initParam.url }/appindex"></c:import>
				</c:if>
				<c:if test="${admin != null }">
					<c:import url="${initParam.url }/adminindex"></c:import>
				</c:if>
			</div>
			<div id="main">
				<tiles:insertAttribute name="main"></tiles:insertAttribute>
			</div>
			<div class="clear"></div>
		</div>
		<!-- 页脚 -->
		<%--<tiles:insertAttribute name="footer"></tiles:insertAttribute> --%>
		
	</div>
</body>
</html>
